﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace teavch.Util.Web.UI.Automation
{

	public class AutomationElement : IDisposable
	{
		public string ElementID { get; set; }

		public string ElementEvent { get; set; }

		public bool ElementEventStatus { get; set; }

		public AutomationElementAttributes Attributes { get; set; }

		public long DelayAfterExecute { get; set; }

		public AutomationElementEventType ElementEventType { get; set; }

		public AutomationElement()
		{
			this.ElementID = "";
			this.ElementEvent = "";
			this.ElementEventStatus = true;
			this.DelayAfterExecute = 1000;
			this.Attributes = new AutomationElementAttributes();
			this.ElementEventType = AutomationElementEventType.None;
		}

		public void Dispose()
		{
			this.ElementID = "";
			this.ElementEvent = "";
			this.ElementEventStatus = true;
			this.Attributes = null;
			this.DelayAfterExecute = 1000;
			this.ElementEventType = AutomationElementEventType.None;
		}
	}

	public class AutomationElements : List<AutomationElement>
	{ 
	
	}

	public enum AutomationElementEventType
	{
		None,
		InvokeElementMember,
		RaiseDocumentEvent
	}

}
